package net.yla.smartbus.module.ba.right.account.service;

import com.alibaba.fastjson.JSONObject;
import net.yla.smartbus.core.base.PageBean;
import net.yla.smartbus.module.ba.right.account.entity.LoginLogsDO;
import net.yla.smartbus.module.ba.right.admin.query.LogCount;
import net.yla.smartbus.module.ba.right.admin.query.LogQuery;

/**
 * @Date: 2020-08-29 11:14
 * @Author: Being Nobody
 * @Version: 1.0
 */
public interface LoginLogsService {


    int deleteByPrimaryKey(Integer logId);

    int insert(LoginLogsDO record);

    int insertSelective(LoginLogsDO record);

    LoginLogsDO selectByPrimaryKey(Integer logId);

    int updateByPrimaryKeySelective(LoginLogsDO record);

    int updateByPrimaryKey(LoginLogsDO record);

    int logOfCount(LogCount query, long ip);

    PageBean<JSONObject> logOfQuery(LogQuery query, long ip);

    JSONObject logOfView(Integer logId);

}
